﻿using System.Collections.Generic;

namespace System.Modules.Utility.DTO
{
    public class Query
    {
        public Query() { Parameters = new Dictionary<string, object>(); }
        public string SiteUrl { get; set; }
        public string WebUrl { get; set; }
        public string ListName { get; set; }
        public string FolderName { get; set; }
        public Object this[String key]
        {
            get
            {
                Object value = null;
                Parameters.TryGetValue(key, out value);
                return value;
            }
            set
            {
                if (Parameters.ContainsKey(key))
                {
                    Parameters[key] = value;
                }
                else
                {
                    Parameters.Add(key, value);
                }
            }
        }
        Dictionary<String, object> Parameters { get; set; }
    }
}
